package com.cdp.web.controller.system;
import com.cdp.common.core.domain.AjaxResult;
import com.cdp.system.dto.SwellingagentDTO;
import com.cdp.system.service.ISysSwellingagentService;
import com.cdp.system.vo.SwellingagentVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping
public class SysSwellingagentController {


    @Autowired
    private ISysSwellingagentService sysSwellingagentService;

    @PostMapping("querySysSwellingagent")
    public AjaxResult querySysSwellingagent(@RequestBody SwellingagentDTO swellingagentDTO){
    List<SwellingagentVO> swellingagentVOS= sysSwellingagentService.querySysSwellingagent(swellingagentDTO);
        return AjaxResult.success(swellingagentVOS);
    }


}
